/**
 * 
 */
package com.mvc.service.vo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.mapper.vo.*;
import com.mvc.framework.constant.GlobalConstant;
import com.mvc.model.vo.*;
import com.mvc.service.vo.*;

/**
 * @author qingjie
 * @see com.service.HealthSugarService#insertHealthSugar(com.vo.HealthSugar)
 */
@Service
public class HealthSugarImpl implements HealthSugarService {

	@Autowired
	private HealthSugarDao healthSugarDao;
	@Override
	public void insertHealthSugar(HealthSugar healthSugar) {
		switch (GlobalConstant.systemType) {
		case 0:
			healthSugarDao.insertHealthSugar(healthSugar);
			break;
		case 1:
			healthSugarDao.insertBloodSugar(healthSugar);
			break;
		default:
			break;
		}

	}
	@Override
	public int getCounter(String person_id) {
		return healthSugarDao.getCounter(person_id);
	}

}
